<?php
return [
    'SERVER_NAME' => "EasySwoole",
    'MAIN_SERVER' => [
        'LISTEN_ADDRESS' => '0.0.0.0',
        'PORT' => 9501,
        'SERVER_TYPE' => EASYSWOOLE_WEB_SERVER,
        'SOCK_TYPE' => SWOOLE_TCP,
        'RUN_MODEL' => SWOOLE_PROCESS,
        'SETTING' => [
            'worker_num' => 4, //值为当前电脑CPU的 数量 * (1~4),
            'reload_async' => true, //设置异步重启开关。设置为true时，将启用异步安全重启特性，Worker进程会等待异步事件完成后再退出。
            'max_wait_time'=>3 //最大等待时间
        ],
        'TASK'=>[
            'workerNum'=>4, //服务器开启的task进程数。
            'maxRunningNum'=>128,
            'timeout'=>15
        ]
    ],
    'TEMP_DIR' => null,
    'LOG_DIR' => null,
    'MYSQL'         => [
        'host'          => '127.0.0.1', //连接
        'port'          => 3306, //duankou
        'user'          => 'root',
        'password'      => '123456',
        'database'      => 'tt',
        'timeout'       => 5,
        'charset'       => 'utf8mb4',
        'POOL_MIN_NUM'  => 5,
        'POOL_MAX_NUM'  => 20,
        'POOL_TIME_OUT' => 3
    ],
];
